package com.itheima.qiniuyun;

import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties(QiniuyunKodoConfig.class)
public class QiniuyunAutoConfiguration {

    @Bean
    public QiniuUtil qiniuUtil(QiniuyunKodoConfig qiniuyunKodoConfig){
        return new QiniuUtil(qiniuyunKodoConfig);
    }
}
